<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <meta name="description" content="">
        <meta name="author" content="">
        <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet" crossorigin="anonymous">
        <link th:href="@{/css/signin.css}" rel="stylesheet" crossorigin="anonymous"/>
        <title>登录</title>
    </head>
    <body>
        <div class="container">
            <form class="form-signin" method="post" th:action="${loginProcessUrl}">
                <p>
                    <label for="username" class="sr-only">Username</label>
                    <input type="text" id="username" name="username" class="form-control" placeholder="用户名" required autofocus>
                </p>
                <p>
                    <label for="password" class="sr-only">Password</label>
                    <input type="password" id="password" name="password" class="form-control" placeholder="密码" required>
                </p>
                <input name="_csrf" type="hidden" value="1de05617-3d0b-47b0-b1ae-50da84a28ebd" />
                <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
            </form>
            <p style=" color: red; font-size: 1.5rem; margin-top: 3rem; text-align: center" th:if="${param.error}">登录失败</p>
        </div>
    </body>
</html>